import http from "@/utils/request";

export default{
  /**
   * 查询列表
   * @param  params
   * @returns
   */
  async getList(params){
    return await http.get("/api/bdsydsj/list",params);
  },
  //报表输出页面
  async List(pageNo,pageSize,startDate,endDate){
    return await http.get("/api/bdsydsj/list",{pageNo,pageSize,startDate,endDate});
  },
  /**
   * 添加
   * @returns
   */
  async add(params){
    return await http.post("/api/bdsydsj/add",params)
  },
  /**
   * 修改
   * @returns
   */
  async update(params){
    return await http.put("/api/bdsydsj/update",params)
  },

  //删除
  async delete(params) {
    return await http.deleteByObject('/api/bdsydsj/delete', params);

  },
}
